package com.rem.chat.common.errcode;

public interface ServiceErrorCodeConstants {
    // ------ 账户模块错误码 --------
    ErrorCode EMAIL_HAD_USED = new ErrorCode(100, "邮箱已经被使用");
    ErrorCode USER_IS_NOT_EXISTS = new ErrorCode(101, "用户不存在");
    ErrorCode PASSWORD_WRONG = new ErrorCode(102, "密码错误");
    ErrorCode USER_IS_DISABLE = new ErrorCode(103, "用户被禁用");
    ErrorCode ENCODE_DATA_IS_NULL = new ErrorCode(104, "需要加密的数据为空");
    ErrorCode ACCOUNT_HAD_LOGIN = new ErrorCode(105, "账号已在别处登录");

    // ------ 群组模块错误码 --------
    ErrorCode GROUP_ADD_GET_MAX_CNT = new ErrorCode(200, "群组数量已达上限");
    ErrorCode GROUP_AVATAR_NOT_EXISTS = new ErrorCode(201, "群组头像不存在");
    ErrorCode GROUP_UPDATE_NOT_OWNER = new ErrorCode(202, "更新群组并非群主操作");
    ErrorCode GROUP_WRONG_STATUS = new ErrorCode(203, "用户不在群组或群组不存在或群组已解散");
    ErrorCode GROUP_IS_NOT_EXISTS = new ErrorCode(204, "群组不存在");
    ErrorCode GROUP_MEMBERS_IS_FULL = new ErrorCode(205, "群组成员已满");

    // ------ 聊天模块错误码 --------
    ErrorCode CONTACT_TYPE_WRONG = new ErrorCode(300, "聊天类型不存在");
    ErrorCode CONTACT_APPLY_TYPE_WRONG = new ErrorCode(301, "申请状态不存在或者不合理");
    ErrorCode NOT_USER_OPERATE = new ErrorCode(302, "非用户本人处理申请消息");
    ErrorCode STATUS_UPDATE_WRONG = new ErrorCode(303, "更新状态错误");

    // ------ 用户模块错误码 --------
    ErrorCode USER_CONTACT_STATUS_WRONG = new ErrorCode(400, "用户联系状态错误");
    ErrorCode CONFIRM_PASSWORD_WRONG = new ErrorCode(401, "密码和确认密码不一致");
    ErrorCode OLD_PASSWORD_IS_WRONG = new ErrorCode(402, "旧密码错误");
    ErrorCode OLD_NEW_PASSWORD_SAME = new ErrorCode(403, "新旧密码相同");

    // ------ 后台管理模块错误码 --------
    ErrorCode USER_STATUS_WRONG = new ErrorCode(500, "用户状态错误");
    ErrorCode BEAUTY_ID_IS_EXISTS = new ErrorCode(501, "靓号已经存在");
    ErrorCode EMAIL_IS_BIND_ID = new ErrorCode(502, "邮箱已经绑定靓号");
    ErrorCode BEAUTY_ID_IS_NOT_EXISTS = new ErrorCode(503, "靓号不存在");
    ErrorCode BEAUTY_ID_USED = new ErrorCode(504, "靓号正在被使用");
    ErrorCode FILE_TYPE_WRONG = new ErrorCode(505, "文件类型错误");
    ErrorCode INSTALLATION_NULL = new ErrorCode(506, "安装包不能为空");
    ErrorCode VERSION_ID_IS_EXISTS = new ErrorCode(507, "版本号已经存在");
    ErrorCode VERSION_ID_NOT_MAX = new ErrorCode(508, "版本号不为最大");
    ErrorCode VERSION_ID_IS_NOT_EXISTS = new ErrorCode(509, "版本号不存在");
    ErrorCode VERSION_PUBLISHED = new ErrorCode(510, "版本已经发布");
    ErrorCode UPDATE_STATUS_WRONG = new ErrorCode(511, "发布状态错误");
    ErrorCode GRAYSCALE_ID_NULL = new ErrorCode(512, "灰度用户不存在");
    ErrorCode VERSION_ID_IS_MAX = new ErrorCode(513, "版本号大于最大版本号");

    // ------ 消息模块错误码 --------
    ErrorCode MESSAGE_TYPE_WRONG = new ErrorCode(600, "消息类型错误");
    ErrorCode USER_IS_NOT_YOUR_FRIEND = new ErrorCode(601,  "您与该用户为非好友关系，请添加好友后再继续聊天");
    ErrorCode NOT_ENTER_GROUP = new ErrorCode(602,  "您未加入该群聊，请加入群聊后再继续聊天");
    ErrorCode FILE_IS_NOT_EXISTS = new ErrorCode(603, "文件未不存在");
    ErrorCode CHAT_IS_NOT_EXISTS = new ErrorCode(604, "消息不存在");
    ErrorCode CHAT_IS_NOT_BY_USER_SEND = new ErrorCode(605, "当前消息不由该用户发出");
    ErrorCode FILE_SUFFIX_IS_NULL = new ErrorCode(606, "文件后缀为空");
    ErrorCode FILE_IS_TOO_MAX = new ErrorCode(607, "文件大小超出系统限制");
    ErrorCode AVATAR_NOT_EXISTS = new ErrorCode(608, "头像不存在");
    ErrorCode CHAT_IS_NOT_BY_USER_REV = new ErrorCode(605, "当前消息不由该用户接受");
}
